package com.chuangjiangx.member.manager.web.web.score.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class ModifyScoreGrandRuleRequest {

    /**
     * 累计条件
     */
    @NotNull(message = "{member.amount.null}")
    @DecimalMin(value = "0.01")
    private BigDecimal amount;

    /**
     * 奖励积分值
     */
    @NotNull(message ="{member.puls.score.null}")
    @Range(max = Integer.MAX_VALUE)
    private Long score;


    @Min(value = 0)
    private Integer subscribePnGiftScore;


    @Range(max = 1)
    private Integer cardConsumerGrantScore;
}
